<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:ser="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:tns="http://schemas.datacontract.org/2004/07/ShareDimension.DSRSystemReporting.QueryResults" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/ShareDimension.DSRSystemReporting.QueryResults" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="http://localhost:900/?xsd=xsd2" namespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
  <xs:import schemaLocation="http://localhost:900/?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/" />
  <xs:complexType name="ScoreQueryResult">
    <xs:sequence>
      <xs:element xmlns:q1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" name="ColumnNames" nillable="true" type="q1:ArrayOfstring" />
      <xs:element name="IndicatorColumnIndex" type="xs:int" />
      <xs:element name="TopicColumnIndex" type="xs:int" />
      <xs:element name="WeightMatricesScores" nillable="true" type="tns:ArrayOfWeightMatrixScore" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ScoreQueryResult" nillable="true" type="tns:ScoreQueryResult" />
  <xs:complexType name="ArrayOfWeightMatrixScore">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="WeightMatrixScore" nillable="true" type="tns:WeightMatrixScore" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfWeightMatrixScore" nillable="true" type="tns:ArrayOfWeightMatrixScore" />
  <xs:complexType name="WeightMatrixScore">
    <xs:complexContent mixed="false">
      <xs:extension base="tns:ScoreBase">
        <xs:sequence>
          <xs:element name="CompanyID" type="ser:guid" />
          <xs:element name="EmployeeCount" nillable="true" type="xs:float" />
          <xs:element name="EmployeeCountAverage" nillable="true" type="xs:float" />
          <xs:element name="IndicatorScoreIndex" type="xs:int" />
          <xs:element name="MarketCap" nillable="true" type="xs:float" />
          <xs:element name="MarketCapAverage" nillable="true" type="xs:float" />
          <xs:element name="TopicScoreIndex" type="xs:int" />
          <xs:element xmlns:q2="http://schemas.microsoft.com/2003/10/Serialization/Arrays" name="m_averages" nillable="true" type="q2:ArrayOffloat" />
          <xs:element xmlns:q3="http://schemas.microsoft.com/2003/10/Serialization/Arrays" name="m_columnNames" nillable="true" type="q3:ArrayOfstring" />
          <xs:element xmlns:q4="http://schemas.microsoft.com/2003/10/Serialization/Arrays" name="m_counts" nillable="true" type="q4:ArrayOffloat" />
          <xs:element xmlns:q5="http://schemas.microsoft.com/2003/10/Serialization/Arrays" name="m_maxes" nillable="true" type="q5:ArrayOffloat" />
          <xs:element xmlns:q6="http://schemas.microsoft.com/2003/10/Serialization/Arrays" name="m_mins" nillable="true" type="q6:ArrayOffloat" />
          <xs:element xmlns:q7="http://schemas.microsoft.com/2003/10/Serialization/Arrays" name="m_ranks" nillable="true" type="q7:ArrayOffloat" />
          <xs:element xmlns:q8="http://schemas.microsoft.com/2003/10/Serialization/Arrays" name="m_scores" nillable="true" type="q8:ArrayOffloat" />
          <xs:element xmlns:q9="http://schemas.microsoft.com/2003/10/Serialization/Arrays" name="m_weightedScores" nillable="true" type="q9:ArrayOffloat" />
          <xs:element xmlns:q10="http://schemas.microsoft.com/2003/10/Serialization/Arrays" name="m_weights" nillable="true" type="q10:ArrayOffloat" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="WeightMatrixScore" nillable="true" type="tns:WeightMatrixScore" />
  <xs:complexType name="ScoreBase">
    <xs:sequence>
      <xs:element name="Average" type="xs:float" />
      <xs:element name="Count" type="xs:int" />
      <xs:element name="Max" type="xs:float" />
      <xs:element name="Min" type="xs:float" />
      <xs:element name="PercentRank" nillable="true" type="xs:float" />
      <xs:element name="Rank" type="xs:int" />
      <xs:element name="Score" type="xs:float" />
      <xs:element name="Weight" type="xs:float" />
      <xs:element name="WeightedScore" type="xs:float" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ScoreBase" nillable="true" type="tns:ScoreBase" />
  <xs:complexType name="CompaniesIndicatorsData">
    <xs:sequence>
      <xs:element xmlns:q11="http://schemas.microsoft.com/2003/10/Serialization/Arrays" name="AnswerCategories" nillable="true" type="q11:ArrayOfstring" />
      <xs:element name="AnswerCategoriesScores" nillable="true" type="xs:base64Binary" />
      <xs:element xmlns:q12="http://schemas.microsoft.com/2003/10/Serialization/Arrays" name="CompaniesData" nillable="true" type="q12:ArrayOfKeyValueOfguidArrayOfunsignedShortox8ieOcg" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="CompaniesIndicatorsData" nillable="true" type="tns:CompaniesIndicatorsData" />
  <xs:complexType name="GroupAverages">
    <xs:annotation>
      <xs:appinfo>
        <IsValueType xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</IsValueType>
      </xs:appinfo>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PortfolioAverage" type="xs:float" />
      <xs:element name="UniverseAverage" type="xs:float" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="GroupAverages" nillable="true" type="tns:GroupAverages" />
  <xs:simpleType name="ReportPerformanceCounterType">
    <xs:annotation>
      <xs:appinfo>
        <ActualType Name="unsignedByte" Namespace="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
      </xs:appinfo>
    </xs:annotation>
    <xs:list>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:enumeration value="ClientCompanyReport" />
          <xs:enumeration value="ClientComparativeReport" />
          <xs:enumeration value="All">
            <xs:annotation>
              <xs:appinfo>
                <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">3</EnumerationValue>
              </xs:appinfo>
            </xs:annotation>
          </xs:enumeration>
        </xs:restriction>
      </xs:simpleType>
    </xs:list>
  </xs:simpleType>
  <xs:element name="ReportPerformanceCounterType" nillable="true" type="tns:ReportPerformanceCounterType" />
</xs:schema>